home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000133_fdc@watsun.cc.columbia.edu_Mon May 14 10:39:05 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  44 lines

  1. Article: 12427 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Server answer and return to interactive mode
  6. Date: 14 May 2001 14:38:07 GMT
  7. Organization: Columbia University
  8. Lines: 27
  9. Message-ID: <9doqkf$pod$1@newsmaster.cc.columbia.edu>
  10. References: <3affebd8$0$43054$456d72a3@news.skynet.be>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 989851087 26381 128.59.39.2 (14 May 2001 14:38:07 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 14 May 2001 14:38:07 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12427
  16.  
  17. In article <3affebd8$0$43054$456d72a3@news.skynet.be>,
  18. Nathan Rousseau <nathan.rousseau@planetmedica.com> wrote:
  19. : I want to write a server script that answer phone call automatically.
  20. : At the end of my ksc file, i have ANSWER and SERVER.
  21. : When i send a file to the server, he answers, receive the file and ...
  22. : return to interactive mode.
  23. : How can i say that the server has to wait for other incoming call when he
  24. : finishes one?
  25. Something like:
  26.  
  27.   set port blah
  28.   set speed blah
  29.   set modem type blah
  30.   cd blah
  31.   disable cd             ; (if desired) don't let client change directories
  32.   disable bye            ; client must use FINISH (not BYE)
  33.   set carrier watch on   ; break out of server if client hangs up
  34.   while true {
  35.       answer
  36.       if success server
  37.   }
  38.  
  39. The "while true" condition can be elaborated to provide any other desired
  40. criterion for loop exit.
  41.  
  42. - Frank
  43.